package com.ciaojian.store.controller.franchisees;

import com.ciaojian.core.model.Franchisees;
import com.ciaojian.core.model.vo.FranchiseesInfoVo;
import com.ciaojian.core.util.Result;
import com.ciaojian.store.service.FranchiseesServiceImpl;
import com.ciaojian.store.service.StoreServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

/**
 * @author cano
 */
@Api(tags = "加盟商账号管理接口")
@RestController
@RequestMapping("/franchisees/user")
public class FranchiseesController {

    @Resource
    private FranchiseesServiceImpl franchiseesServiceImpl;

    @ApiOperation("修改信息(头像,手机")
    @PostMapping("/update")
    public Result update(@RequestBody FranchiseesInfoVo franchiseesInfoVo) {
        return franchiseesServiceImpl.updateInfo(franchiseesInfoVo);
    }
}
